// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Router from 'vue-router'
import App from './App'
import router from './router'
import './css/global.css'
import http from './js/http'
import yryz from './js/yryz'
import utils from './js/utils';
import env from './js/env';
import eventBus from './js/event-bus'
import filter from "./filters"
import toast from "./components/toast"
import confirm from "./components/confirm"
import Install from './js/install';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import VueLazyload from 'vue-lazyload'
import 'swiper/dist/css/swiper.css'
Vue.config.productionTip = false;


Vue.use(http);
Vue.use(yryz);
Vue.use(utils);
Vue.use(env);
Vue.use(eventBus);
Vue.component(toast);
Vue.component(confirm);
Vue.use(VueAwesomeSwiper)
Vue.use(Install);
// viewport()
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'dist/error.png',
  loading: 'dist/loading.gif',
  attempt: 1
})

for (let name in filter) {
	Vue.filter(name, filter[name]);
}

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	template: '<App/>',
	components: { App }
})

window.yryz.isLoaded()

